# -*- coding: utf-8 -*-

from core.viewset import CustomModelViewSet
from .models import Post
from .serializers import *
from .filters import *


class PostViewSet(CustomModelViewSet):
    """
    字典管理接口
    list:查询
    create:新增
    update:修改
    retrieve:单例
    destroy:删除
    """

    queryset = Post.objects.all()
    serializer_class = PostSerializer
    filterset_class = PostFilterSet
